package com.gzh.teaching.model.vo;

import com.gzh.core.dao.po.WorkEntity;
import com.gzh.core.util.StringUtils;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;


@Setter
@Getter
@ToString
@NoArgsConstructor
public class GetJobOut {
  private String workId;
  private String workName;
  private String createDate;
  private String createTime;
  private String courseId;
  private String isPublish;
  private String isEnd;
  private String publishDate;
  private String publishTime;
  private String endDate;
  private String endTime;
  private String workType;
  private String fileId;
  private String fileName;
  private String filePath;
  private String completeType;
  private String score;

  public GetJobOut(WorkEntity workEntity) {
    this.workId = StringUtils.toString(workEntity.getWorkId());
    this.workName = workEntity.getWorkName();
    this.createDate = StringUtils.toString(workEntity.getCreateDate());
    this.createTime = StringUtils.toString(workEntity.getCreateTime());
    this.courseId = StringUtils.toString(workEntity.getCourseId());
    this.isPublish = StringUtils.toString(workEntity.getIsPublish());
    this.isEnd = StringUtils.toString(workEntity.getIsEnd());
    this.publishDate = StringUtils.toString(workEntity.getPublishDate());
    this.publishTime = StringUtils.toString(workEntity.getPublishTime());
    this.endDate = StringUtils.toString(workEntity.getEndDate());
    this.endTime = StringUtils.toString(workEntity.getEndTime());
    this.workType = StringUtils.toString(workEntity.getWorkType());
    this.fileId = StringUtils.toString(workEntity.getFileId());
  }
}
